<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/14 014
 * Time: 14:40
 */

namespace App\Command;


class SimpleRemoteControl
{
    public $slot;

    public function __construct()
    {
    }

    public function setCommand(Command $command)
    {
        $this->slot = $command;
    }

    public function buttonWasPressed()
    {
        $this->slot->execute();
    }

}